#pragma once

#include "OS.h"
#include <string>

using namespace std;

namespace host {

#ifndef MAX_PATH
#define MAX_PATH          260
#endif

    class OSFile
    {
    public:
        OSFile();
        virtual ~OSFile();

        static void Init();
        static const char* GetAppPath() { return m_sAppPath; };
        static void GetFullPath(const char * sInPath, string& sFullPath);
        static void GetFolder(const char * sPath, string& sFloder);
        static void GetName(const char * sPath, string& sName);
        static void GetSuffix(const char * sPath, string& sSuffix);
        static bool PathFix(string& i_sPath);
        static bool IsExist(const char *i_sPath);
        static bool Mkdir(const char *i_sPath);
        static bool Cover2Folder(const char *i_sPath, string& sFloder);

    private:
        static char m_sAppPath[MAX_PATH];
    public:
    };
}
